package homework.advance;

import java.util.*;

import homework.News;

public class RandomOne {

	public static void main(String[] args) {
		List list = new ArrayList();

		for (int i = 0; i < 10; i++) {

			int a = (int) (Math.random() * 19 + 1);

			if (list.indexOf(a) != -1) {
				i--;
			} else {
				list.add(a);
			}

		}
		for (Object o : list) {
			System.out.println(o);
		}
	}

}
